home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beginning Mac Programming
/
Beginning Mac Programming.bin
/
Open Me for REALbasic 3
/
REALbasic 3.2
/
Example Projects
/
Applications
/
RB-ECHO CGI EXAMPLE
/
How to test CGIs on your mac
next >
Wrap
Text File
|
1998-06-01
|
2KB
|
48 lines
6/1/98 Doug Holton <doug.holton@vanderbilt.edu>
Upload your improvements to the realsoftware ftp server or
the realbasic hotline cafe.
You can test RealBasic CGI apps of your own by running a web
server and browser on your own computer locally. Anytime
you make changes to your source code and want to try them out,
you have to build the application, and give it a name that ends
with ".acgi". Drag the application to the cgi-bin folder inside
your server's root or where-ever you can put cgi programs.
Download Quid Pro Quo or another of the servers listed at
http://www.macorchard.com/
You'll need enough RAM to run the server, a browser, and the cgi app:
Quid Pro Quo ~ 5mb
Internet Explorer 4 ~ 4mb
realbasic cgi app ~ 1 mb
(Finder takes up RAM, too)
After you've installed the server, open your TCP/IP control panel,
and save the configuration you have. Type command-K to view all
the configurations. Duplicate one of them and rename it "localtalk"
or something. Click the "Make Active" button to go back to the
TCP/IP window. These are the settings I have:
Connect via: appletalk (MacIP)
Configure: Using MacIP manually
IP Address: 111.111.111.111 (or any easy to remember numbers)
everything else should be blank
Now open up Quid Pro Quo (or your server) and it should start up alright
(though it may take a while while it tries a nameserver lookup), then
start up your web browser. Open up a url like this:
http://111.111.111.111/cgi-bin/rb-echo.acgi
replace the numbers with the numbers you entered in the TCP/IP control panel,
and replace the name of the program with the name of your CGI app.
HISTORY:
version 0.11:
• I shouldn't have taken out the "----" stringparam, I forgot what it was for :-)
• forgot to close a <br> tag
version 0.1:
• initial release